package com.kitty.common.schedule.task;

import com.kitty.common.utils.SpringUtils;
import com.kitty.game.activity.service.time.*;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Component;

@Component
@Slf4j
public class GongChengTask implements ScheduledOfTask {


    @Override
    public void execute() {
        SpringUtils.getBean(TianBingShenJiangHandler.class).flushPirate();
        SpringUtils.getBean(BaiNianCiWeiJing.class).flushPirate();
        SpringUtils.getBean(BaiNIianZhuYaoJing.class).flushPirate();
        SpringUtils.getBean(BaiNianXiangXing.class).flushPirate();
        SpringUtils.getBean(BaiHuaX.class).flushPirate();
        SpringUtils.getBean(NiuMoWang.class).flushPirate();
        SpringUtils.getBean(YeChaWang.class).flushPirate();
        SpringUtils.getBean(BaiGuJing.class).flushPirate();
        SpringUtils.getBean(KongQueYaoJi.class).flushPirate();
        SpringUtils.getBean(LuoChaWang.class).flushPirate();
        log.info("刷新全部怪物攻城");
    }
}
